package com.yunbiao.ybboardapi;

public enum DeviceType {

    //        DEFAULT(0),//默认
    SDMT(1),//视美泰
    MSTAR(6),//庆吉
    YISHENG(3),//亿晟
    YISHENG_M(31);


    private int type;

    DeviceType(int type) {
        this.type = type;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public static DeviceType getByType(int deviceType) {
        for (DeviceType type : values()) {
            if (type.getType() == deviceType) {
                return type;
            }
        }
        return null;
    }

}
